package com.example.behaviour.message;

import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class ChatRequestMessage extends Message {
    private String content;
    private String to;
    private String username;
    private boolean isLogin;

    public ChatRequestMessage() {
    }

    public ChatRequestMessage(String username, String to, String content,boolean isLogin) {
        this.username = username;
        this.to = to;
        this.content = content;
        this.isLogin = isLogin;
    }

    @Override
    public int getMessageType() {
        return ChatRequestMessage;
    }
}
